package com.a.l;

import android.os.Parcel;
import android.os.Parcelable;

public class JWTResp implements Parcelable {
    private String jwtCode;
    private String resultCode;
    private String resultMsg;
    private String ccuId;

    protected JWTResp(Parcel in) {
        jwtCode = in.readString();
        resultCode = in.readString();
        resultMsg = in.readString();
        ccuId = in.readString();
    }

    public void readFromParcel(Parcel in) {
        jwtCode = in.readString();
        resultCode = in.readString();
        resultMsg = in.readString();
        ccuId = in.readString();
    }

    public JWTResp() {
    }

    public JWTResp(String jwtCode, String resultCode, String resultMsg,String ccuId) {
        this.jwtCode = jwtCode;
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
        this.ccuId = ccuId;
    }

    public static final Creator<JWTResp> CREATOR = new Creator<JWTResp>() {
        @Override
        public JWTResp createFromParcel(Parcel in) {
            return new JWTResp(in);
        }

        @Override
        public JWTResp[] newArray(int size) {
            return new JWTResp[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(jwtCode);
        dest.writeString(resultCode);
        dest.writeString(resultMsg);
        dest.writeString(ccuId);
    }

    public String getJwtCode() {
        return jwtCode;
    }

    public void setJwtCode(String jwtCode) {
        this.jwtCode = jwtCode;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public String getCcuId() {
        return ccuId;
    }

    public void setCcuId(String ccuId) {
        this.ccuId = ccuId;
    }

    public static Creator<JWTResp> getCREATOR() {
        return CREATOR;
    }

    @Override
    public String toString() {
        return "JWTResp{" +
                "jwtCode='" + jwtCode + '\'' +
                ", resultCode='" + resultCode + '\'' +
                ", resultMsg='" + resultMsg + '\'' +
                ", ccuId='" + ccuId + '\'' +
                '}';
    }
}
